[XM] Fix missing security check in block-attach
authorAlastair Tse <atse@xensource.com>
Tue, 3 Oct 2006 09:48:07 +0000 (10:48 +0100)
committerAlastair Tse <atse@xensource.com>
Tue, 3 Oct 2006 09:48:07 +0000 (10:48 +0100)
This patch fixes an indentation error in main.py. The effect of this
bug is that block-attach does not check labels if the ACM is
active. This bug slipped in with change set 11572_:_ ad22c711ccb7
<http://xenbits.xensource.com/xen-unstable.hg?cs=ad22c711ccb7>.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>

tools/python/xen/xm/main.py

index 19126e72714ed45f2f01cadc2a2488e3a1afd775..1fb4cc2061cf8de65115efb5c3272fcbcc48200a 100644 (file)
@@ -1222,7 +1222,7 @@ def parse_block_configuration(args):
         label = security.get_security_printlabel(dominfo)
     else:
         label = None
-        security.res_security_check(args[1], label)
+    security.res_security_check(args[1], label)
 
     return (dom, vbd)